package com.goblin.model.uaa.po;

import com.goblin.model.order.po.ShoppingAddress;
import lombok.Data;

import javax.persistence.*;
import java.util.List;

@Data
@Table(name = "t_test_member_user")
@Entity
public class CustomerUser extends User {

    @Column(name = "email", columnDefinition = "varchar(11) COMMENT '手机号'")
    private String email;

    @Column(name = "portrait", columnDefinition = "varchar(11) COMMENT '头像照'")
    private String portrait;
    //
    //@OneToMany(cascade = CascadeType.MERGE, fetch = FetchType.EAGER)
    //@JoinTable(name = "t_member_combine_user_address", joinColumns = @JoinColumn(name = "user_id", referencedColumnName = "id"), inverseJoinColumns = @JoinColumn(name = "address_id", referencedColumnName = "id"), foreignKey = @ForeignKey(value = ConstraintMode.CONSTRAINT))
    //private List<ShoppingAddress> shoppingAddresses;
}
